package com.yaowk.authc.model;

import com.yaowk.authc.model.base.BaseRole;

import java.util.List;

/**
 * 角色
 * Created by yaowenkai on 2017/3/31.
 */
public class Role extends BaseRole<Role> {

    public static final Role dao = new Role();

    /**
     * 通过用户id获取用户角色
     *
     * @param userId
     * @return
     */
    public List<Role> findListByUserId(Integer userId) {

        return this.find(getSql("role.selectByUserId"), userId);
    }
}
